package com.loongtech.bi.entity.pay;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "new_user_ltv")
public class EntityNewUserLTV implements Serializable {
	private static final long serialVersionUID = 2L;

	@Id
	@Column(columnDefinition="varchar(32)")
	private String startday;  // 开始时间
	@Id
	@Column(columnDefinition="varchar(32)")
	private String endday;  // 结束时间
	@Id
	private String serverid;
	@Id
	private String channelid;
	@Id
	private String platformid;
	@Column(columnDefinition="bigint(20) NOT NULL default 0")
	private long addcash_user;
    @Column(columnDefinition="bigint(20) NOT NULL default 0")
    private long cashadd;

	/**
	 * 返回主键字符串
	 * @return
	 */
	public String getKey() {
		return startday + "-" + platformid + "-" + channelid + "-" + serverid;
	}
	
	public String getServerid() {
		return serverid;
	}

	public void setServerid(String serverid) {
		this.serverid = serverid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public String getPlatformid() {
		return platformid;
	}

	public void setPlatformid(String platformid) {
		this.platformid = platformid;
	}

	public long getAddcash_user() {
		return addcash_user;
	}

	public void setAddcash_user(long addcash_user) {
		this.addcash_user = addcash_user;
	}

	public String getStartday() {
		return startday;
	}

	public void setStartday(String startday) {
		this.startday = startday;
	}

	public String getEndday() {
		return endday;
	}

	public void setEndday(String endday) {
		this.endday = endday;
	}

	public long getCashadd() {
		return cashadd;
	}

	public void setCashadd(long cashadd) {
		this.cashadd = cashadd;
	}
}